package com.zfei.gfb;

import com.zfei.gfb.model.*;

public interface GfbService {

    GfbGuest addGuest(String openId);

    GfbVillager addVillager(String uuid, String phone, String name, String idCard, Integer userId, String villagerName, String town, Integer naturalVillageId, String naturalVillageName, String groupNumber, String address);

    GfbCompany addCompany(String phone);

    int balance(Integer userId);

    GfbVillager confirm(String uuid);

    GfbOrder order(GfbVillager villager, GfbGoods goods);

    void writeOffOrder(GfbOrder gfbOrder, GfbGoods goods);

    void reduce(Integer userId, Integer price);

    void recharge(Integer userId, Integer price);

    void updateVillager(GfbVillager realVillager);
}
